expose ismrmrd c-api error codes
add rudimentary error checks

NOTE:
 * long term is to expose and read the c-error stack
   similar to what is done in the C++ API