Direct Numerical Simulation And Global Stability Analysis Of Boundary Layer Flows Past Roughness Elements