Fredholmness of singular integral operators with piecewise continuous coefficients on weighted Banach function spaces