Analysis of the subharmonic route to transition in boundary layers