Simultaneous material and topology optimization