To support direct unit testing and use of the function outside of the main sim_lc.py, add catch-and-raise-exceptions for the following:
- a negative value for flare_amp is submitted
- a negative value for flare_halfwidth is submitted
- a flare_halfwidth of 0 is submitted
and also update the unit test file for these cases