The self-consistent phonon method for monatomic crystals