Using ultrasound and photoacoustics to monitor in situ forming implant structure and drug release