Edwardsville resident pleads guilty to two bank robberies