How is the number of MPs decided for each state and territory?