FLARES: an aging aware algorithm to autonomously adapt the error correction capability in NAND Flash memories