Hard x-ray methods for studying the structure of amorphous thin films and bulk glassy oxides