On Determining Smartphone Microphone Directivity with Application to Beamforming