Electrical resistivity of minerals and rocks at high temperature and pressure