Electric vehicles charging management using deep reinforcement learning considering vehicle-to-grid operation and battery degradation