Crossover from spin-flop coupling to collinear spin alignment in antiferromagnetic/ferromagnetic nanostructures.