Field-theoretical approach to static critical phenomena in semi-infinite systems