Phase-field simulation of tilted growth of dendritic arrays during directional solidification