A method to take account of the geometrical imperfections of quasi-spherical indenters