An explicit solution for bending of nanowires lying on Winkler–Pasternak elastic substrate medium based on the Euler–Bernoulli beam theory