Attention-Based Variational Framework for Joint and Individual Components Learning with Applications in Brain Network Analysis