Ultrasonic phased array techniques using switched-mode excitation