A new universal method of monitoring layer parameters and surface roughness in vacuum deposition and etching processes