Advanced finite-element techniques for simulation of composite materials and large-scale scattering problems