On the validity of the maximum hardness principle and the minimum electrophilicity principle during chemical reactions