[lib] Added pwm_str_fmt() and pwm_str_vfmt()

They are added for future use and not needed at the moment.

* pwm_str_fmt() is the pwm equivalent to sprintf()
* pwm_str_vfmt() is the pwm equivalent to vsprintf()