Angular dependence of the coercivity and remanence of ferromagnetic nanowire arrays