A new vibrational technique for measurement of stress variations in thin films