Reconstructing the atmospheric wave front for adaptive optics