Branching fraction measurements of χc0 and χc2 to π0π0 and ηη