Optimization of atomic Faraday filters in the presence of homogeneous line broadening