A Rocket Mortgage study highlights Alabama as one of the most affordable states to buy a home. Here's where it ranks and why.