TinyML for All: Full-stack Optimization for Diverse Edge AI Platforms