Determination of energy and mass distributions of ions and neutral particles in magnetron-ionplating