Narrowband ultrasonic phased array control using a photonic beamformer