Pure infiniteness and ideal structure of crossed products by endomorphisms of $C_0(X)$-algebras