General relations for quantum gases in two and three dimensions: Two-component fermions