Rotational constants and geometrical structure of the 1A2 and 3A2 states of H2CO and D2CO