Spectroelectrochemical investigation of passive layers formed on electrode surfaces