ADAGE: An Automated Synthesis tool for Adaptive BCH-based ECC IP-Cores