Increasing subsequences and the hard-to-soft edge transition in matrix ensembles