Hyperfine local probe study of alkaline-earth manganites SrMnO3 and BaMnO3