How to apply for a mortgage: The complete guide