Controlled synthesis of Eu2+ and Eu3+ doped ZnS quantum dots and their photovoltaic and magnetic properties