assert that Petsc really is initialized when initialized=True

If you've brought in `petsc.h` you should have access to `CHKERRQ(ierr)` which will use the nice PETSc error reporting mechanism.