Energy-preserving methods for guiding center system based on averaged vector field