Epistasis and constraints in fitness landscapes