Abundances of refractory elements in the atmospheres of stars with extrasolar planets