Impurity effects in tungsten phosphate glasses. II. Electrical and optical properties