Stress measurements of atomic layers and at surfaces