Direct inversion of interfacial reflectivity data using the Patterson function