Scaling laws for the field quality at injection in the LHC dipoles