Zaslat SMS: Cost-driven design of smart microsystems