Phase calibration for integrated optical phased arrays using artificial neural network with resolved phase ambiguity