stmhal: Make LED.intensity return the same value it was set to.

Also give proper error message when trying to construct a non-existent
LED.

Addresses issue #530.