Calculated elastic constants and electronic and magnetic properties of bcc, fcc, and hcp Cr crystals and thin films