How are the law of definite proportions and Dalton's atomic theory related?