Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?