Design of materials with prescribed properties using topology optimization