Homology of real algebraic fiber bundles having circle as fiber or base