Relevant sparse codes with variational information bottleneck