Inverting Reflectometry with Deep Learning and Prior Knowledge