A cosmic and solar X-ray and gamma-ray instrument for a scout launch