DPAM: A Demand-based Page-level Address Mappings Algorithm in Flash Memory for Smart Industrial Edge Devices