Dependence of the microwave surface resistance on the structure and thickness of superconducting cuprate films