Relations between potential energy, electronic chemical potential, and hardness profiles