Modelling the structure factors and pair distribution functions of amorphous germanium, silicon and carbon