Meniscus model for noncontacting and contacting sphere-on-flat surfaces including elastic-plastic deformation