Solidification Pressure of Nuclear and Neutron Star Matter