Topology optimization of one-dimensional wave impeding barriers