Measurements and removal of substrate effects on the microwave surface impedance of YBCO films on SrTiO3