Spatial modulational instability and multisolitonlike generation in a quadratically nonlinear optical medium