Direct etching of perovskite film by electron-beam scanning