First analytical calculation of black hole shadow in McVittie metric