Formulas for the stiffness of composites with periodic microstructure