The Biermann battery effect at the interfaces in stratified plasmas