Conformation and orientation dependence in ion-induced collisions with DNA and RNA building blocks