Optical response of YBCO thin films and weak-links