Approximate method for analysis of the contact temperature and pressure due to frictional load in an elastic layered medium