Bank robber sentenced for stealing nearly $25,000