A method for reconstruction of an interface in atomic detail