Neutrons and x-rays for materials physics