Observation of modulational instability in a quadratically nonlinear optical medium in one and two dimensions