Computational models in the service of X-ray and cryo-EM structure determination