Gamma-ray burst investigation via polarimetry and spectroscopy (GRIPS)