Deposition of thin films by ion plating on surfaces having various configurations