Posets of Non-Crossing Partitions of Type B and Applications