Estimation of strain from piezoelectric effect and domain switching in morphotropic PZT by combined analysis of macroscopic strain measurements and synchrotron X-ray data