Water restriction in different phenological stages and increased temperature affect cowpea production