Design of surfaces for controlling hard and soft fouling