Improving the understanding of the link between cognition and functional capacity in schizophrenia and bipolar disorder