Electron heating associated with magnetic reconnection in foreshock waves: particle-in-cell simulation analysis