Life cycle inventory analysis of the production of metals used in photovoltaics