Using the hardware real-time clock (RTC) in low-power modes with STM32 microcontrollers