Former Scottsbluff Police captain pleads guilty to two felonies