The distribution of epistasis on simple fitness landscapes