Fundamental principles of the Baconian ciphers and application to books of the sixteenth and seventeenth centuries