Reconstructing energy and X-max of cosmic ray air showers using the radio lateral distribution measured with LOPES