Obama nominates Thomas Perez as labor secretary