The use of contrast variation in the specular reflection of neutrons from interfaces