Influence of bacterial physiology on processing of selenite, biogenesis of nanomaterials and their thermodynamic stability