A rational extended thermodynamics model for metal electrons in bounded domains