A Modular Framework for Smart Garment Design