Efficient treatment of complex geometries for large eddy simulations of turbulent flows