Asymptotic behaviour of eigenfunctions in a thin cylender with distorted ends