Optimal operation of simple refrigeration cycles: Part I: Degrees of freedom and optimality of sub-cooling