Effect Of Different Electrode Configurations On The Ultrafast Photoinduced Strain Of Ferroelectric Devices