Growth and characterization of pyrite thin films for photovoltaic applications