Unlocking TinyML: A Cost-Efficient Approach to Custom Microcontroller Design for AI Applications