Enhancing Free-hand 3D Photoacoustic and Ultrasound Reconstruction using Deep Learning