A field theoretical approach to the quasi-continuum method