Calculation of structure factors from molecular models with anisotropic atoms