Efficient electrical control of thin-film black phosphorus bandgap