Electronic and optical properties of Cu, CuO and Cu2O studied by electron spectroscopy