Real-time Feynman rules for gauge theories with fermions at finite temperature and density