Browsing Asterank, it seems that people believe many asteroids have large amounts of iron or magnesium silicate. These compounds may come in a hydrated form which contains water, but it is chemically fixed into the solids.
For example, the composition of the NEA named Anteros is listed as magnesium silicate, aluminum, iron silicate. Magnesium Silicate is $Mg_3Si_4O_{10}(OH)_2$.
Is it feasible to extract the hydrogen and oxygen for a return trip? Assume sufficient, reliable, automation is in place to perform this complicated task. With energy provided by solar panels, and enough time, could fuel be created? How much time and energy would be required to produce a unit (e.g. kg) of fuel?