Design and implementation of a smartphone-based portable ultrasound pulsed-wave Doppler device for blood flow