Metallurgical analysis and RF losses in superconducting niobium thin film cavities