Bacillus spores as building blocks for stimuli-responsive materials and nanogenerators